Documenting QuArK
Updated 28 Feb 2001
|
Upper levels: - QuArK Information Base - 3. Advanced customization |
3.8. Documenting QuArK |
[ | - - ]
Index |
The Information Base |
Armin Rigo - 15 Feb 2001 | [ Top ] |
The Information Base is the source of information that you're just reading. It is written as a set of organized text files whose format is described below. The tool that translates these files and directories into a set of HTML files is the Python script build.py . The directories correspond to the classification in the final HTML files. Each directory must contain a file index.txt which gives the overall description of the category; it can also contain any number of other .txt files, which will be grouped into a single HTML. Each such text file correspond to a "question/answer" or item of discussion. |
Information Base Syntax |
Armin Rigo / tiglari / Decker - 28 Feb 2001 | [ Top ] |
All .txt files in the infobase are formatted as follow: First, a list of keyword-value pairs, ended with a blank line, and followed by the text itself. For example: title: This is the title of what this file contains. author: Your Name subdir: list subdirectories subdir: can be done on several lines desc: list files desc: without ".txt" extension The text follows the blank line. The most common keywords are given in this example. Notice that subdir and desc only make sense in the file index.txt , while author is only used in the opposite case. Other keywords might be parsed in the future. Also note that all file names should be lowercase. The text itself is formatted paragraph-by-paragraph, with at least one blank line between paragraphs (a single end-of-line is not considered as separating two paragraphs). Do not use <P> and </P> tags, as these will be automatically applied. If build.py finds any, it will complain. You are able to use basic HTML tags within the text (except the previously mentioned), but you must ensure that tags are not split between 2 or more lines, as build.py then can't find the end of the tag. For instance this is illegal: <table border=1 cellpadding=0 cellspacing=0> Whereas this is the correct way to do it: <table border=1 cellpadding=0 cellspacing=0> Some special tags, that build.py checks for:
List of examples:
|
GNU General Public License by The QuArK (Quake Army Knife) Community - http://www.planetquake.com/quark |
[ Top - ] | -